package cn.bytets.rpc.api.exchange;

import cn.bytets.rpc.common.URL;

/**
 * 这里主要负责生成不同的Exchanger,只是没有实现SPI这个功能,所以这里的代码只是留作扩展
 */
public class Exchangers {


//    public static ExchangeClient connect(URL url) throws RemotingException {
//        return connect(url, new ChannelHandlerAdapter(), null);
//    }

//    public static Exchanger getExchanger(URL url) {
//        String type = url.getParameter(Constants.EXCHANGER_KEY, Constants.DEFAULT_EXCHANGER);
//        return getExchanger(type);
//    }
//
//    public static Exchanger getExchanger(String type) {
//        return ExtensionLoader.getExtensionLoader(Exchanger.class).getExtension(type);
//    }
}
